﻿@model Article
@using (Ajax.BeginAjaxForm())
{
    if (Model == null)
    {
    <div style="padding: 20px;">
        <table>
            <tr>
                <td style="padding:5px 0px;" colspan="3">
                    This post is lock by author you must entry the password to unlock it.
                </td>
            </tr>
            <tr>
                <td>
                    <img src="@Url.Content("~/content/images/icon_lock_48.png")" alt="icon lock" />
                </td>
                <td>
                    <div>@Html.Global("RES_PASSWORD")</div>
                    <div>@Ajax.Dna().TextBox("Password").Password().GetHtml()</div>
                </td>
                <td style="text-align: center;">
                    @Ajax.Dna().Button("Unlock").Text("Unlock").Submit().ImageIcons(Url.Content("~/content/images/icon_key_16.gif")).GetHtml()
                </td>
            </tr>
        </table>
    </div>
    }
    else
    {
        Html.RenderPartial("_ContentBody", Model);
    }
    @Html.StartupScripts()
}